/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package plash.events;

/**
 *
 * @author  #0K Srinivasan <hashok.com>
 */
public class KeyEvent extends Event
{
    public static final String KEY_UP = "mouse_up";
    public static final String KEY_DOWN = "mouse_down";
    
    private char _key;
    private int _keyCode;
  
    private boolean _shiftDown = false;
    private boolean _controlDown = false;
    private boolean _isAltDown = false;
    private boolean _isBackspace = false;
    
    
    public KeyEvent(String type, int keyCode, char key, boolean isShiftDown, boolean isControlDown, boolean isAltDown)
    {
        super(type);
        _keyCode = keyCode;
        _key = key;
        _shiftDown = isShiftDown;
        _controlDown = isControlDown;
        _isAltDown = isAltDown;
    }

    public int getKeyCode()
    {
        return _keyCode;
    }

    public boolean isShiftDown()
    {
        return _shiftDown;
    }

    public boolean isControlDown()
    {
        return _controlDown;
    }    

    public char getKey()
    {
        return _key;
    }

    public boolean isIsAltDown()
    {
        return _isAltDown;
    }    
}
